package com.cosmoplat.xikai.business.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cosmoplat.xikai.business.domain.BaseDispatchTask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cosmoplat.xikai.business.domain.vo.ProductTaskVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 22047582
* @description 针对表【base_dispatch_task】的数据库操作Mapper
* @createDate 2025-01-07 13:51:30
* @Entity com.cosmoplat.xikai.business.domain.BaseDispatchTask
*/
public interface BaseDispatchTaskMapper extends BaseMapper<BaseDispatchTask> {

    /**
     * 分页查询
     * @param queryDTO
     * @return
     */
    List<ProductTaskVo> queryProductionPlanList(@Param("ew") QueryWrapper queryDTO);

    /**
     * 获取当前的时间最新的任务
     * @date 13:58 2025/1/15
     * @param queryWrapper
     * @return com.cosmoplat.xikai.business.domain.BaseDispatchTask
     **/
    BaseDispatchTask getLastTask(@Param("ew") QueryWrapper<BaseDispatchTask> queryWrapper);
}




